/*
 * Copyright (c) 2014 Strong Group - 版权所有
 * 
 * This software is the confidential and proprietary information of
 * Strong Group. You shall not disclose such confidential information 
 * and shall use it only in accordance with the terms of the license 
 * agreement you entered into with www.cnstrong.cn.
 */
package com.zuorenke.serialize.support.json;

import com.zuorenke.serialize.ObjectInput;
import com.zuorenke.serialize.ObjectOutput;
import com.zuorenke.serialize.Serialization;

import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;


public class JacksonSerialization implements Serialization {

	public byte getContentTypeId() {
		return 6;
	}

	public String getContentType() {
		return "text/json";
	}

	public ObjectOutput serialize(OutputStream output) throws IOException {
		return new JacksonObjectOutput(output);
	}

	public ObjectInput deserialize(InputStream input) throws IOException {
		return new JacksonObjectInput(input);
	}

}